#include <iostream>
#include <assert.h>
using namespace std;

void test_exception()
{
    try
    {
        throw 1;
    }
    catch (int e)
    {
        cout << "catch int exception" << endl;
    }
    catch (char e)
    {
        cout << "catch char exception" << endl;
    }
    catch (...)
    {
        cout << "catch other exception" << endl;
    }
}

int main(void)
{
    test_exception();

    return 0;
}
